/**
 * 框架入口
 */
class Frame {
    static debug: boolean = true;
    static debugConsole($obj, ...param) {
        (this.debug) && (console.log(...param, "from", $obj));
    }

    static gameProgress;

    static get Game(): GameFrame.Manager {
        return GameFrame.Manager.instance();
    }

    static get Message(): Message {
        return Message.instance();
    }
    static get MVC(): MVC.Manager {
        return MVC.Manager.instance();
    }
    //显示管理
    static get Display(): Display.Manager {
        return Display.Manager.instance();
    }
    //资源加载管理
    static get RES(): GameFrame.Res {
        return GameFrame.Res.instance();
    }
    //通用对象池
    static get ObjectPool(): CommonFrame.ObjectPool {
        return CommonFrame.ObjectPool.instance();
    }
    //全局数据存放
    static get DataPool(): CommonFrame.DataPool {
        return CommonFrame.DataPool.instance();
    }
    //socket网络连接
    static get Socket(): CommonFrame.Socket{
        return CommonFrame.Socket.instance();
    }
}

